<?php
/*
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = '123456';//'CLdxN5VNuXuSxphw19uj';
$db['default']['database'] = 'sonnd_test_vbb';//gb_muathevn

$link = mysql_connect($db['default']['hostname'], $db['default']['username'], $db['default']['password']);
*/
define ('MYSQL_HOST', '14.0.30.170');
define ('MYSQL_USER', 'webdev');
define ('MYSQL_PWD', 'webdev');
define ('MYSQL_DB', 'gb_muathe.vn');
define ('MYSQL_PORT', '3306');

    ////////////connect to db/////////////
    $link           = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PWD);
    if (!$link) {
        //die('Not connected : ' . mysql_error());
        return new soapval('return','xsd:string',"Not connected");
    }
    // make foo the current db
    $db_selected    = mysql_select_db(MYSQL_DB, $link);
    if (!$db_selected) {
        //die ('Can\'t use foo : ' . mysql_error());
        return new soapval('return','xsd:string',"Can\'t use db ");
    }    
    /////////////connect to db/////////////
    $query      = "SELECT MO_ID FROM ano_sms_mo WHERE MO_ID='154301'";    
    $resultset  = mysql_query($query);
    $row        = mysql_fetch_row($resultset);
    print_r($row);
    echo $mtseq      = $row[0];// ung voi MOID
?>